package server.model.solver.maze;

import server.model.solver.maze.algorithms.*;

public class MazeH implements IDistance {
	
	public double getDistance(State state, State goal) {
		MazeState mazeState = (MazeState)state;
		MazeState mazeGoal = (MazeState)goal;
		
		int cols = Math.abs(mazeGoal.getX() - mazeState.getX());
		int rows = Math.abs(mazeGoal.getY() - mazeState.getY());
					
		return (Math.sqrt(Math.pow(cols, 2) + Math.pow(rows, 2))) * 10;
	}

}
